package com.happystreet.manager
{
	import com.happystreet.engine.CoreShop;
	import com.happystreet.engine.Truck;

	public class TrucksManager
	{
		private var trucksList:Array;
		public function TrucksManager(coreShop:CoreShop)
		{
			this.trucksList = new Array();
		}
		
		public function checkHasDeliveryOfSubType(_arg1:String):Boolean
		{
			var _local2:Truck;
			for each (_local2 in this.trucksList)
			{
				if (_local2.subType == _arg1)
				{
					return (true);
				}
			}
			return (false);
		}
		
		public function pushTruck(_arg1:String, _arg2:int, _arg3:String=null):void
		{
			
		}
		
		public function updateTruck(_arg1:String="anyTruck", _arg2:int=-1, _arg3:Boolean=false):void{
			
		}
		
		public function killTrucks():void
		{
			
		}
		/**
		 *获取当前的卡车 
		 * @return 
		 * 
		 */		
		public function getCurrentTruck():Truck
		{
			if (this.trucksList.length > 0)
			{
				return this.trucksList[0];
			}
			return null;
		}
	}
}